package com.ruoyi.project.lely.bean.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

/**
 * 分类
 *
 * @author luoyong
 */
@Data
@ApiModel("分类 入参DTO")
public class LyCategoryDTO {

    @ApiModelProperty("ID")
    private Long id;

    @Length(max = 63, message = "类目名称长度不能超过63位")
    @NotEmpty
    @ApiModelProperty("类目名称")
    private String name;

    @Length(max = 1023, message = "类目关键字，以JSON数组格式长度不能超过1023位")
    @NotEmpty
    @ApiModelProperty("类目关键字，以JSON数组格式")
    private String keywords;

    @Length(max = 255, message = "类目广告语介绍长度不能超过255位")
    @ApiModelProperty("类目广告语介绍")
    private String desc;

    @NotNull
    @ApiModelProperty("父类目ID")
    private Integer pid;

    @Length(max = 255, message = "类目图标长度不能超过255位")
    @ApiModelProperty("类目图标")
    private String iconUrl;

    @Length(max = 255, message = "类目图片长度不能超过255位")
    @ApiModelProperty("类目图片")
    private String picUrl;

    @Length(max = 255, message = "长度不能超过255位")
    @ApiModelProperty("ID")
    private String level;

    @ApiModelProperty("排序")
    private Integer sortOrder;

}
